package com.onefinger.manager.events
{
	import com.onefinger.manager.vos.Category;
	import com.onefinger.manager.vos.Device;
	import com.onefinger.manager.vos.Item;
	import com.onefinger.manager.vos.Subcategory;
	import com.onefinger.manager.vos.Waiter;
	
	import flash.events.Event;

	public class ManagerEvent extends Event
	{
		//--------------------------------------------------------------------
		//    CATEGORY EVENT CONSTANT
		//--------------------------------------------------------------------
		public static const GET_CATEGORY_LIST:String = "GET_CATEGORY_LIST";
		public static const SAVE_CATEGORY:String = "SAVE_CATEGORY";
		public static const DELETE_CATEGORY:String = "DELETE_CATEGORY";
		public static const SELECT_CATEGORY:String = "SELECT_CATEGORY";
		public static const UPDATE_CATEGORY:String = "UPDATE_CATEGORY";
		//--------------------------------------------------------------------
		//    SUBCATEGORY EVENT CONSTANT
		//--------------------------------------------------------------------
		public static const GET_SUBCATEGORY_LIST:String = "GET_SUBCATEGORY_LIST";
		public static const SAVE_SUBCATEGORY:String = "SAVE_SUBCATEGORY";
		public static const DELETE_SUBCATEGORY:String = "DELETE_SUBCATEGORY";
		public static const SELECT_SUBCATEGORY:String = "SELECT_SUBCATEGORY";
		public static const UPDATE_SUBCATEGORY:String = "UPDATE_SUBCATEGORY";
		//--------------------------------------------------------------------
		//    ITEM EVENT CONSTANT
		//--------------------------------------------------------------------
		public static const GET_ITEM_LIST:String = "GET_ITEM_LIST";
		public static const SAVE_ITEM:String = "SAVE_ITEM";
		public static const DELETE_ITEM:String = "DELETE_ITEM";
		public static const SELECT_ITEM:String = "SELECT_ITEM";
		public static const UPDATE_ITEM:String = "UPDATE_ITEM";
		public static const CHANGE_CATEGORY_UPDATE_SUBCATEGORY:String = "CHANGE_CATEGORY_UPDATE_SUBCATEGORY";
		//--------------------------------------------------------------------
		//    DEVICE EVENT CONSTANT
		//--------------------------------------------------------------------
		public static const GET_DEVICE_LIST:String = "GET_DEVICE_LIST";
		public static const SAVE_DEVICE:String = "SAVE_DEVICE";
		public static const DELETE_DEVICE:String = "DELETE_DEVICE";
		public static const SELECT_DEVICE:String = "SELECT_DEVICE";
		public static const UPDATE_DEVICE:String = "UPDATE_DEVICE";
		//--------------------------------------------------------------------
		//    WAITER EVENT CONSTANT
		//--------------------------------------------------------------------
		public static const GET_WAITER_LIST:String = "GET_WAITER_LIST";
		public static const SAVE_WAITER:String = "SAVE_WAITER";
		public static const DELETE_WAITER:String = "DELETE_WAITER";
		public static const SELECT_WAITER:String = "SELECT_WAITER";
		public static const UPDATE_WAITER:String = "UPDATE_WAITER";
		//--------------------------------------------------------------------
		//    DATA EVENT
		//--------------------------------------------------------------------
		public var category:Category;
		public var subcategory:Subcategory;
		public var item:Item;
		public var device:Device;
		public var waiter:Waiter;
		
		
		public function ManagerEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=true)
		{
			super(type, bubbles, cancelable);
		}
	}
}